package com.example.robot.service;

import com.example.robot.props.RobotProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RobotService {


    private RobotProperties robotProperties;

    @Autowired
    public void setRobotProperties(RobotProperties robotProperties) {
        this.robotProperties = robotProperties;
    }


    public String reply(String name) {
        return robotProperties.getPrefix() + name;
    }
}
